package com.wish.group05.base.service.impl;

import com.wish.group05.base.dto.ViewDetailsRequestDto;
import com.wish.group05.base.dto.ZJFInformation;
import com.wish.group05.base.entity.FkBusinessCredit;
import com.wish.group05.base.mapper.FkBusinessCreditMapper;
import com.wish.group05.base.service.IFkBusinessCreditService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 风控公寓授信主表 服务实现类
 * </p>
 *
 * @author houzehui
 * @since 2022-05-23
 */
@Service
public class FkBusinessCreditServiceImpl extends ServiceImpl<FkBusinessCreditMapper, FkBusinessCredit> implements IFkBusinessCreditService {

    @Override
    public FkBusinessCredit queryObjectBusinessId(Long businessId) {
        return getBaseMapper().queryObjectBusinessId(businessId);
    }

    @Override
    public ZJFInformation findByBusinessAndProductId(ViewDetailsRequestDto viewDetailsRequestDto) {
        return getBaseMapper().findByBusinessAndProductId(viewDetailsRequestDto);
    }

    @Override
    public void updateFkBusinessCreditSub(ZJFInformation findById) {
        getBaseMapper().updateFkBusinessCreditSub(findById);

    }

}
